%%%
close all
clear all
clc
%%%

fid = fopen('GEL401_Traj_valid_moyen_out.bin','r','b');
x = fread(fid,[8,inf],'single');
fclose(fid);

% Ordre des signaux :
%  1- trajx
%  2- trajy
%  3- trajz
%  4- xw
%  5- yw
%  6- r
%  7- alpha
%  8- beta

t = [0:1/1000:(length(x)-1)/1000];

figure;
subplot(3,1,1)
plot(t,x(1,:))
subplot(3,1,2)
plot(t,x(2,:))
subplot(3,1,3)
plot(t,x(3,:))

figure;
subplot(5,1,1);
plot(t,x(4,:))
subplot(5,1,2);
plot(t,x(5,:))
subplot(5,1,3);
plot(t,x(6,:))
subplot(5,1,4);
plot(t,x(7,:)*180/pi)
subplot(5,1,5);
plot(t,(x(8,:))*180/pi)
